File: /var/www/html/orbidirectory.com/database/migrations/2024_08_09_061538_create_blogs_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('blogs', function (Blueprint $table) {
$table->id();
$table->string('author');
$table->string('title');
$table->longText('description');
$table->string('tags')->nullable();
$table->tinyInteger('status')->default(0)->comment('0:Active, 1:Inactive');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('blogs');
}
};